package com.sugar.real.estate.module.business.controller.admin.info.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Schema(description = "管理后台 - 资讯信息新增/修改 Request VO")
@Data
public class InfoSaveReqVO {

    @Schema(description = "资讯分类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9307")
    private Long id;

    @Schema(description = "所属分类ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27261")
    @NotNull(message = "所属分类ID不能为空")
    private Long clsId;

    @Schema(description = "封面图", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "封面图不能为空")
    private String banner;

    @Schema(description = "标题（中文）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题（中文）不能为空")
    private String titleZhCn;

    @Schema(description = "标题（英文）", requiredMode = Schema.RequiredMode.REQUIRED)
    //@NotEmpty(message = "标题（英文）不能为空")
    private String titleEnUs;

    @Schema(description = "内容（中文）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "内容（中文）不能为空")
    private String contentZhCn;

    @Schema(description = "内容（英文）", requiredMode = Schema.RequiredMode.REQUIRED)
    //@NotEmpty(message = "内容（英文）不能为空")
    private String contentEnUs;

    @Schema(description = "发布时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "发布时间不能为空")
    private LocalDate releaseDate;

    @Schema(description = "浏览量", requiredMode = Schema.RequiredMode.REQUIRED, example = "8056")
    @NotNull(message = "浏览量不能为空")
    private Long viewCount;

    @Schema(description = "作者名（中文）")
    private String authorZhCn;

    @Schema(description = "作者名（英文）")
    private String authorEnUs;

    @Schema(description = "是否热门（0否 1是）")
    private Boolean isHot;

}